package exception;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class TryCatchFinallyDemo {
	public static void main(String[] args) {
		
		try {
			FileInputStream fis = new FileInputStream("a.txt");
		} catch (FileNotFoundException e) {
			// 每个异常类都有 printStackTrace();  打印栈中跟踪(红色字体)
			e.printStackTrace();
		} 
		
		try {
			int i = 1 / 0;
		} catch (ArithmeticException e) {
			e.printStackTrace();
		}
		
		System.err.println("hello ");
	}
}
